﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Artemis;


namespace JAWWS
{
    class Floor

    {
        public float posX, posY, posZ = 0;
        public uint texID;
       


        public Floor()
        {     
            texID  = 0;          
        }


        public Floor(MainForm main)
        {
            texID = main.TexIDs[0];
         
        }    

        public void draw()
        {
            int i = 0;
            

                GL.glBegin(GLenum.GL_POLYGON);

                GL.glTexCoord2d(1.0, 0.0);
                GL.glVertex3f(1.0f, -0.05f, 1.0f +i);

                GL.glTexCoord2d(1.0, 1.0);
                GL.glVertex3f(1.0f, -0.05f, -1.0f + i);

                GL.glTexCoord2d(0.0, 1.0);
                GL.glVertex3f(-1.0f, -0.05f, -1.0f + i);

                GL.glTexCoord2d(0.0, 0.0);
                GL.glVertex3f(-1.0f, -0.05f, 1.0f + i);
                GL.glEnd();
        

         }

    



    }
}
